<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{codespostauxmsgs['navigation.back']}" action="/jsf/codespostaux/listCodesPostauxs.xhtml"/>
		
			<p:panel header="#{codespostauxmsgs['codespostaux.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
						<h:outputText value="#{codespostauxmsgs['codespostaux.cdppays.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.cdpPays}"/>
						<h:outputText value="#{codespostauxmsgs['codespostaux.cdpcodepostal.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.cdpCodePostal}"/>
						<h:outputText value="#{codespostauxmsgs['codespostaux.cdpninsee.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.cdpNInsee}"/>
						<h:outputText value="#{codespostauxmsgs['codespostaux.cdplocalite.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.cdpLocalite}"/>
						<h:outputText value="#{codespostauxmsgs['codespostaux.cdpbureaudistributeur.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.cdpBureauDistributeur}"/>
						<h:outputText value="#{codespostauxmsgs['codespostaux.cdpparticucommunelieudit.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.cdpParticuCommuneLieuDit}"/>
						<h:outputText value="#{codespostauxmsgs['codespostaux.cdpparticubureaudistrib.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.cdpParticuBureauDistrib}"/>
						<h:outputText value="#{codespostauxmsgs['codespostaux.cdpcodemiseajour.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.cdpCodeMiseAJour}"/>
						<h:outputText value="#{codespostauxmsgs['codespostaux.cdplocalitefiscalstandard.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.cdpLocaliteFiscalStandard}"/>
				</h:panelGrid>
			</p:panel>

			<p:panel header="#{codespostauxmsgs['pays.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="pays" columns="2" styleClass="grid" columnClasses="label,value" rendered="#{CodesPostauxComponent.codespostaux.pays != null}" >
					<h:outputText value="#{codespostauxmsgs['pays.ppppays.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppPays}"/>
					<h:outputText value="#{codespostauxmsgs['pays.ppplibelle.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppLibelle}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppmasquecodepostal.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppMasqueCodePostal}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppmasquetelephone.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppMasqueTelephone}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppprefixeinternational.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppPrefixeInternational}"/>
					<h:outputText value="#{codespostauxmsgs['pays.ppplibellerecherche.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppLibelleRecherche}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppcpmodifiable.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppCpModifiable}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppninsee.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppNInsee}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppetiquetterib.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppEtiquetteRib}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppmasqueportable.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppMasquePortable}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppmasqueetablissement.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppMasqueEtablissement}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppmasqueguichet.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppMasqueGuichet}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppmasquecompte.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppMasqueCompte}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppmasquecle.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppMasqueCle}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppordredsiban.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppOrdreDsIban}"/>
					<h:outputText value="#{codespostauxmsgs['pays.pppce.title']}:" />
							<h:outputText value="#{CodesPostauxComponent.codespostaux.pays.pppCe}"/>
				</h:panelGrid>
				<h:panelGrid columns="2" styleClass="grid" columnClasses="label,value" rendered="#{CodesPostauxComponent.codespostaux.pays != null}" >
					<p:commandButton image="edit" ajax="false" style="margin-right:20px;" value="#{codespostauxmsgs['navigation.edit']}" action="#{CodesPostauxComponent.editCodesPostauxPays(CodesPostauxComponent.codespostaux.cdpPays, CodesPostauxComponent.codespostaux.cdpCodePostal, CodesPostauxComponent.codespostaux.cdpNInsee, CodesPostauxComponent.codespostaux.cdpLocalite, CodesPostauxComponent.codespostaux.pays.pppPays)}"/>
					<p:commandButton image="delete" ajax="false" style="margin-right:20px;" value="#{codespostauxmsgs['navigation.delete']}" action="#{CodesPostauxComponent.confirmDeleteCodesPostauxPays(CodesPostauxComponent.codespostaux.cdpPays, CodesPostauxComponent.codespostaux.cdpCodePostal, CodesPostauxComponent.codespostaux.cdpNInsee, CodesPostauxComponent.codespostaux.cdpLocalite, CodesPostauxComponent.codespostaux.pays.pppPays)}"/>
				</h:panelGrid>
				<h:panelGrid columns="1" styleClass="grid" columnClasses="label,value" rendered="#{CodesPostauxComponent.codespostaux.pays == null}" >
					<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{codespostauxmsgs['navigation.new']}" action="#{CodesPostauxComponent.newCodesPostauxPays(CodesPostauxComponent.codespostaux.cdpPays, CodesPostauxComponent.codespostaux.cdpCodePostal, CodesPostauxComponent.codespostaux.cdpNInsee, CodesPostauxComponent.codespostaux.cdpLocalite)}"/>
				</h:panelGrid>
			</p:panel>
			<p:panel header="#{codespostauxmsgs['adresses.title']} Details" style="margin-top:10px">
			<p:commandButton image="new" ajax="false" style="margin-right:20px;" value="#{codespostauxmsgs['navigation.new']}" action="#{CodesPostauxComponent.newCodesPostauxAdresseses(CodesPostauxComponent.codespostaux.cdpPays, CodesPostauxComponent.codespostaux.cdpCodePostal, CodesPostauxComponent.codespostaux.cdpNInsee, CodesPostauxComponent.codespostaux.cdpLocalite)}"/>
			<p:dataTable id="adresseses" value="#{CodesPostauxComponent.listCodesPostauxAdresseses(CodesPostauxComponent.codespostaux.cdpPays, CodesPostauxComponent.codespostaux.cdpCodePostal, CodesPostauxComponent.codespostaux.cdpNInsee, CodesPostauxComponent.codespostaux.cdpLocalite)}"  var="current" rows="10" paginator="true" paginatorPosition="bottom">
				<p:column>
					<h:commandLink includeViewParams="true" action="#{CodesPostauxComponent.selectCodesPostauxAdresseses(CodesPostauxComponent.codespostaux.cdpPays, CodesPostauxComponent.codespostaux.cdpCodePostal, CodesPostauxComponent.codespostaux.cdpNInsee, CodesPostauxComponent.codespostaux.cdpLocalite, current.addAdresse)}" >
						<h:graphicImage value="/images/icons/view.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{CodesPostauxComponent.editCodesPostauxAdresseses(CodesPostauxComponent.codespostaux.cdpPays, CodesPostauxComponent.codespostaux.cdpCodePostal, CodesPostauxComponent.codespostaux.cdpNInsee, CodesPostauxComponent.codespostaux.cdpLocalite, current.addAdresse)}" >
						<h:graphicImage value="/images/icons/edit.gif" style="border:0;"/>
					</h:commandLink>
					<h:commandLink includeViewParams="true" action="#{CodesPostauxComponent.confirmDeleteCodesPostauxAdresseses(CodesPostauxComponent.codespostaux.cdpPays, CodesPostauxComponent.codespostaux.cdpCodePostal, CodesPostauxComponent.codespostaux.cdpNInsee, CodesPostauxComponent.codespostaux.cdpLocalite, current.addAdresse)}" >
						<h:graphicImage value="/images/icons/delete.gif" style="border:0;"/>
					</h:commandLink>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{codespostauxmsgs['adresses.addadresse.title']}" />
					</f:facet>
							<h:outputText value="#{current.addAdresse}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{codespostauxmsgs['adresses.addtopnpai.title']}" />
					</f:facet>
							<h:outputText value="#{current.addTopNpai}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{codespostauxmsgs['adresses.addtypevoie.title']}" />
					</f:facet>
							<h:outputText value="#{current.addTypeVoie}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{codespostauxmsgs['adresses.addligne1.title']}" />
					</f:facet>
							<h:outputText value="#{current.addLigne1}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{codespostauxmsgs['adresses.addligne2.title']}" />
					</f:facet>
							<h:outputText value="#{current.addLigne2}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{codespostauxmsgs['adresses.addligne3.title']}" />
					</f:facet>
							<h:outputText value="#{current.addLigne3}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{codespostauxmsgs['adresses.addbureaudistrib.title']}" />
					</f:facet>
							<h:outputText value="#{current.addBureauDistrib}"/>
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{codespostauxmsgs['adresses.adddatecreation.title']}" />
					</f:facet>
							<h:outputText value="#{current.addDateCreation}"  converter="dateConverterForCalendar" />
				</p:column>
				<p:column> 
					<f:facet name="header">
						<h:outputText value="#{codespostauxmsgs['adresses.adddatemodification.title']}" />
					</f:facet>
							<h:outputText value="#{current.addDateModification}"  converter="dateConverterForCalendar" />
				</p:column>
			</p:dataTable>
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>